package com.lagou.service;

import com.lagou.pojo.Course;
import com.lagou.pojo.Course_Lesson;
import com.lagou.pojo.Course_Section;

import java.util.List;

/**
 * 课程内容管理service接口
 */
public interface CourseContentService {
    //根据课程id查询课程内容
    public List<Course_Section> findSectionAndLessonByCourseId(int courseId);
    //根据id查询课程信息
    public Course findCourseByCOurseId(int courseId);
    //保存章节信息
    public String saveSection(Course_Section section);
    //更新章节信息
    public String updateSection(Course_Section section);
    //更新章节状态
    public String updateSectionStatus(int id,int status);
    //保存课时方法
    public String saveLesson(Course_Lesson lesson);
    //更新课时方法
    public String updateLesson(Course_Lesson lesson);
}
